package com.hjs.mapper;

import com.hjs.bean.PavementFlatness;
import com.hjs.bean.RegularInspection;
import com.hjs.bean.PavementDamage;
import com.hjs.bean.PavementDamageCom;

import java.util.List;

/**
 * @author violetfreesia
 * @date 2020/06/16
 */
public interface RegularInspectionMapper {
    boolean addOneRegularInspection(RegularInspection obj);

    boolean addOnePavementDamageCom(PavementDamageCom obj);

    boolean addOnePavementDamage(PavementDamage obj);

    boolean addOnePavementFlatness(PavementFlatness obj);

    boolean deleteOneRegularInspectionById(int id);

    boolean deleteOnePavementDamageComById(int id);

    boolean deleteOnePavementDamageById(int id);

    boolean deleteOnePavementFlatnessById(int id);

    boolean updateOneRegularInspection(RegularInspection obj);

    boolean updateFlatnessIDRegularInspectionById(int regularInspectionID, int flatnessID);

    boolean updatePavementDamageComIDRegularInspectionById(int regularInspectionID, int pavementDamageComID);

    boolean updateEvaluationResultsIDRegularInspectionById(int regularInspectionID, int evaluationResultsID);

    boolean updateOnePavementDamageCom(PavementDamageCom obj);

    boolean updateOnePavementDamage(PavementDamage obj);

    boolean updateOnePavementFlatness(PavementFlatness obj);

    List<RegularInspection> getAllRegularInspection();

    RegularInspection getOneRegularInspectionById(int id);

    List<RegularInspection> getRegularInspectionByRoadId(int roadId);

    PavementDamageCom getPavementDamageComById(int id);

    PavementFlatness getPavementFaltnessById(int id);
}
